/*
 *    Copyright 2009-2022 the original author or authors.
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *       https://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */
package org.apache.ibatis.mapping;

/**
 * Represents the content of a mapped statement read from an XML file or an annotation.
 * It creates the SQL that will be passed to the database out of the input parameter received from the user.
 *
 * 用 SqI Source 接口表示映射文件或注解中定义的 SQL 语句，但它表示的 SQL
 * 句是不能直接被数据库执行的，因为其中可能含有动态 SQL 语句相应的节点或是占位符等需要
 * 解析的元素。
 *
 * @author Clinton Begin
 */
public interface SqlSource {

  /**
   * getBoundSql （）方法会根据映射文件或注解描述的 SQL 语句，以及传入的参敛，返回可执行的 SQL
   * BoundSql 对象会在后面具体介绍，其中封装了包含 ？”占位符的 SQL 语句，以及绑定 实参
   */
  BoundSql getBoundSql(Object parameterObject);

}
